package com.itheima.advantagesup.service;

import com.itheima.advantagesup.common.PageBean;
import com.itheima.advantagesup.dto.*;
import com.itheima.advantagesup.entity.YddAdvpos;

import java.util.List;

/**
 * @author iTaotao
 * @date 2023/7/27 15:08
 * @desciption: 广告位接口
 */
public interface YddAdvposService {


    /**
     * selete页面
     *
     * @param advposPageDTO advpos页面dto
     * @return {@link PageBean}
     */
    PageBean seletePage(AdvposPageDTO advposPageDTO);

    /**
     * selete列表
     *
     * @return {@link List}<{@link YddAdvpos}>
     */
    List<YddAdvpos> seleteList();

    /**
     * 添加advpos
     *
     * @param advposCreateDTO advpos创建dto
     */
    void addAdvpos(AdvposCreateDTO advposCreateDTO);


    /**
     * 删除advpos通过id
     *
     * @param id id
     */
    void removeAdvposById(Integer id);

    /**
     * selete通过id
     *
     * @param id id
     * @return {@link YddAdvpos}
     */
    YddAdvpos seleteById(String id);

    /**
     * 更新advpos
     *
     * @param advposUpdateDTO advpos更新dto
     */
    void updateAdvpos(AdvposUpdateDTO advposUpdateDTO);
}
